import instance from '@/utils/request.js'

export const getEvaluateList = (params) => {
  return instance({
    url: '/evaluate/list',
    method: 'get',
    params,
  })
}
export const editEvaluate = ( data) => {

  return instance({
    url: '/evaluate',
    method: 'put',
    data,
  })
}

export const deleteEvaluate = (id) => {
  return instance({
    url: `/evaluate/${id}`,
    method: 'delete',
  })
}

export const addEvaluate = (data) => {
  return instance({
    url: '/evaluate',
    method: 'post',
    data,
  })
}

export const getEvaluateSelect = () => {
  return instance({
    url: '/package/getLabel',
    method: 'get',
  })
}
